<div>{link controller="usermanager" action="newUser" text="Create new user"}</div>
<div class="users">
<table>
<tr>
	<th>User ID</th>
	<th>First Name</th>
	<th>Last Name</th>
	<th>Username</th>
	<th>Email</th>
	<th>Status</th>
	<th>Type</th>
	<th>Last Login</th>
	<th>Action</th>
</tr>
{foreach from=$users key=key item=user}
	<tr>
		<td>{$user->id}</td>
		<td>{$user->first_name}</td>
		<td>{$user->last_name}</td>
		<td>{$user->username}</td>
		<td>{$user->email}</td>
		<td>{$user->status_id}</td>
		<td>{$user->type}</td>
		<td>{$user->last_login}</td>
		<td>
			{link controller="usermanager" action="editUser" id=$user->id text="Edit"}
			{link controller="usermanager" action="deleteUser" id=$user->id text="Delete"}
		</td>
	</tr>
{/foreach}
</table>
</div>